package com.buddy.learn.javasource._lock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author Buddy
 * @date 2021/5/15
 */
public class _ReentrantLock {

    public static void main(String[] args) {
        ReentrantLock reentrantLock = new ReentrantLock(true);
        reentrantLock.lock();
        try {

        }finally {
            reentrantLock.unlock();

        }
    }
}
